package zhh.tangbao.auxiliary.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import zhh.tangbao.auxiliary.entity.SystemFile;

/**
 * 2023/2/26
 * @author 粥灰灰
 * @version 1.0
 * 描述
 */

@Repository
@Mapper
public interface SystemFileDao extends BaseMapper<SystemFile> {


    String getFileAccessPathById(Long id);

    /**
     * 根据文件ID为其绑定一个业务对象ID，建立关联关系
     * @param fileId 文件ID
     * @param mappingId 业务对象ID
     * @return
     */
    int updateMappingId(@Param("id") Long fileId,@Param("mappingId") String mappingId);
}
